tools/libxc: Fix use of zlib-options when building the domain builder
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Feb 2016 19:21:31 +0000 (19:21 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 15 Feb 2016 17:05:55 +0000 (17:05 +0000)
commit99ba14f3cff29eeb59809f92a6ca3a8705133c75
treea73529e82d4f327a69cd03a22032f78eb84c83f3
parent3a8be001bb793ad0f05489913808919783890008
tools/libxc: Fix use of zlib-options when building the domain builder

c/s de0f8c7c changed the use of zlib-options, and moved it from being locally
generated to coming from ./configure.

However, it neglected to modify the users of zlib-options.  The curious use of
$(call ...) was to select either the -D or -l options as appropriate, but c/s
de0f8c7c broke this by loosing the `grep`.

Instead, use $(filter ...) to pick out either the -D or -l options.  This
fixes the build with Clang, which complains at passing '-llzma' when trying
to compile xc_dom_bzimageloader.c to xc_dom_bzimageloader.o.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libxc/Makefile